projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166097e
)
serial: s5p: get the port id number from the alias of the device node
author
Thomas Abraham
<
[email protected]
>
Sat, 23 Apr 2016 16:48:10 +0000
(22:18 +0530)
committer
Minkyu Kang
<
[email protected]
>
Wed, 25 May 2016 01:00:19 +0000
(10:00 +0900)
The port id, if not specified in the device node, can be obtained from
the alias of the device node listed in the aliases node.
Cc: Minkyu Kang <
[email protected]
>
Signed-off-by: Thomas Abraham <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Signed-off-by: Minkyu Kang <
[email protected]
>
drivers/serial/serial_s5p.c
patch
|
blob
|
history
diff --git
a/drivers/serial/serial_s5p.c
b/drivers/serial/serial_s5p.c
index feba467d809452447f07bd2973621d4cb945baa0..8590dfd418a34d3588a766cc15e2bddf9119ab29 100644
(file)
--- a/
drivers/serial/serial_s5p.c
+++ b/
drivers/serial/serial_s5p.c
@@
-174,8
+174,8
@@
static int s5p_serial_ofdata_to_platdata(struct udevice *dev)
return -EINVAL;
plat->reg = (struct s5p_uart *)addr;
- plat->port_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
"id", -1);
-
+ plat->port_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
+ "id", dev->seq);
return 0;
}